xen.git
20 years agoThis patch does 2 jobs:
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:36:53 +0000 (10:36 +0000)]
This patch does 2 jobs:

- Enforce the number of CPUs dom0 will take. See the new variable
"dom0-cpus" in xend-config.sxp (you will want to set this variable to
1 on SMP systems)

- Balloon out dom0 memory when creating domU, if there is not enough
free memory. The lowest level we will balloon out is configured via
the new variable "dom0-min-mem" in xend-config.sxp

I still have a doubt: where to put the code to enforce dom0-cpus. At
the moment I put it into
python/xen/xend/server/SrvDaemon.py, and hopefully that is resonable
enough. Any comment?

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
20 years agoPatch for 64-bit VMX guest destroy
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:36:11 +0000 (10:36 +0000)]
Patch for 64-bit VMX guest destroy

64-bit VMX guest can't be destroyed without this patch, as guest page's
reference count problem.
This patch made two point of reference count correct:
1. In invlpg, the old page count need put.
2. There is a specail case for fl1's shadow reference count.=20
=20

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoHere is our latest patch to enable the Xen tools to
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:34:45 +0000 (10:34 +0000)]
Here is our latest patch to enable the Xen tools to
build and work with IA64 Xen.
Signed-off-by: Matt Chapman <matthewc@hp.com>
Acked-by: Dan Magenheimer <dan.magenheimer@hp.com>
20 years agoAttached patch adds a DMA zone to xen, also modifies xen_contig_memory()
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:31:22 +0000 (10:31 +0000)]
Attached patch adds a DMA zone to xen, also modifies xen_contig_memory()
to ask for DMA pages.
Signed-off-by: srparish@us.ibm.com
20 years agoThis patch updates the CPU field in xm list for multi-vcpu domains.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:27:12 +0000 (10:27 +0000)]
This patch updates the CPU field in xm list for multi-vcpu domains.
When a dom runs on multiple physical cpus, the CPU field doesn't have
much meaning.  The suggested fix was to replace the value with '-'.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years ago... for dom0 if we know we'll need it. This is the xen
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:24:41 +0000 (10:24 +0000)]
... for dom0 if we know we'll need it.  This is the xen
counterpart to the previous xenlinux patch which adds this
info to the kernel.  Also adds some printk's.

20 years ago... so it builds again and also add a note to the xen elf header
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:24:06 +0000 (10:24 +0000)]
... so it builds again and also add a note to the xen elf header
that this kernel should be booted in shadow-translated mode.

20 years agoReally just basic preparation: switch over PAE builds to the new
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:23:07 +0000 (10:23 +0000)]
Really just basic preparation: switch over PAE builds to the new
shadow code, drop old dummy functions, add (fewer) new ones.

20 years agofix x86_64 domain0 /dev/mem issue
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:22:03 +0000 (10:22 +0000)]
fix x86_64 domain0 /dev/mem issue
x86_64 miss the define of ARCH_HAS_DEV_MEM, that causes
/drivers/char/mem.c to not show low 1M memory correctly.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoPDB: add some additional files
ach61@arcadians.cl.cam.ac.uk [Thu, 28 Jul 2005 21:32:13 +0000 (21:32 +0000)]
PDB: add some additional files

20 years agoPDB: process targets
ach61@arcadians.cl.cam.ac.uk [Thu, 28 Jul 2005 21:28:23 +0000 (21:28 +0000)]
PDB: process targets

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:34:45 +0000 (12:34 +0000)]
merge?

20 years agoDon't unbind port when event channel binding fails.
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:33:53 +0000 (12:33 +0000)]
Don't unbind port when event channel binding fails.
This happens when xend tries to introduce the same domain twice.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSimplify code by acking watch as soon as we read it.
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:29:23 +0000 (12:29 +0000)]
Simplify code by acking watch as soon as we read it.
Since watches no longer block anyone, this doesn't change semantics.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSimplify code by making in and out pointers internal to xenbus_xs.c
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:25:13 +0000 (12:25 +0000)]
Simplify code by making in and out pointers internal to xenbus_xs.c
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoNicer platform timer string (include clock rate in mhz).
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 10:20:08 +0000 (10:20 +0000)]
Nicer platform timer string (include clock rate in mhz).
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix irq.c warning, from aq.
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 09:37:53 +0000 (09:37 +0000)]
Fix irq.c warning, from aq.

20 years agoFix gnttab bug in blkfront.
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 09:10:05 +0000 (09:10 +0000)]
Fix gnttab bug in blkfront.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSlightly better time debugging support in Xen.
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 23:15:15 +0000 (23:15 +0000)]
Slightly better time debugging support in Xen.

20 years agoGet rid of internet_copy.jpg once more.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:41:49 +0000 (18:41 +0000)]
Get rid of internet_copy.jpg once more.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't ignore exceptions here - the possible RuntimeError is handled already.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:40:32 +0000 (18:40 +0000)]
Don't ignore exceptions here - the possible RuntimeError is handled already.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoIntroduce dom0 to the store.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:31:18 +0000 (18:31 +0000)]
Introduce dom0 to the store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoHandle introduce_domain failing when the domain is already introduced.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:31:03 +0000 (18:31 +0000)]
Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAlways pass around the store machine frame number instead of the linear address.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:17:09 +0000 (17:17 +0000)]
Always pass around the store machine frame number instead of the linear address.
Also cleanup IOCTL_PRIVCMD_INITDOMAIN_STORE.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd xc_init_store python binding.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:06:02 +0000 (17:06 +0000)]
Add xc_init_store python binding.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix read of integers from database on event channel restore.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:04:47 +0000 (17:04 +0000)]
Fix read of integers from database on event channel restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake XENSTORED_DEBUG create a xenstored trace logfile.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:03:00 +0000 (17:03 +0000)]
Make XENSTORED_DEBUG create a xenstored trace logfile.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove SIF_BLK_BE_DOMAIN and SIF_NET_BE_DOMAIN definitions to where they are used.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:00:24 +0000 (17:00 +0000)]
Move SIF_BLK_BE_DOMAIN and SIF_NET_BE_DOMAIN definitions to where they are used.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:57:37 +0000 (16:57 +0000)]
merge?

20 years agoDon't auto-add domains we don't know about.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:57:01 +0000 (16:57 +0000)]
Don't auto-add domains we don't know about.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd IBM Cyclone support to Xen.
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:18:02 +0000 (16:18 +0000)]
Add IBM Cyclone support to Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd HPET support to Xen. It is quicker to access and more
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 15:32:44 +0000 (15:32 +0000)]
Add HPET support to Xen. It is quicker to access and more
precise than the PIT.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoOn opt_nosmp, also force num_cores to 1. Do this in setup.c
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 11:20:47 +0000 (11:20 +0000)]
On opt_nosmp, also force num_cores to 1. Do this in setup.c
instead of cpu/common.c. This is where opt_nosmp is defined,
and it reduces diff of cpu/ subdir against native Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoKill a bad assertion.
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 11:02:30 +0000 (11:02 +0000)]
Kill a bad assertion.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 10:54:39 +0000 (10:54 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoMake sure that opt_nosmp also disables hyperthreading. This stops us
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 10:52:29 +0000 (10:52 +0000)]
Make sure that opt_nosmp also disables hyperthreading.  This stops us
from trying to create domains on non-existent threads, which would
lead to a rather nasty crash.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoRename file with space in name.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 09:56:31 +0000 (09:56 +0000)]
Rename file with space in name.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : tools/sv/images/internet copy.jpg => tools/sv/images/internet_copy.jpg

20 years agoFix memory reservation in XenLinux.
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 09:24:51 +0000 (09:24 +0000)]
Fix memory reservation in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFrob the Linux-2.6 configs to enable PAE (HIGHMEM_64G) if XEN_TARGET_X86_PAE=y
iap10@freefall.cl.cam.ac.uk [Wed, 27 Jul 2005 00:27:36 +0000 (00:27 +0000)]
Frob the Linux-2.6 configs to enable PAE (HIGHMEM_64G) if XEN_TARGET_X86_PAE=y

Signed-off-by: ian@xensource.com
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 18:41:39 +0000 (18:41 +0000)]
merge?

20 years agoClean up xenbus code not to use priorities.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:38:33 +0000 (17:38 +0000)]
Clean up xenbus code not to use priorities.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix case where watch callback unregisters itself: do not try to ack it
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:27:26 +0000 (17:27 +0000)]
Fix case where watch callback unregisters itself: do not try to ack it
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoImplement xenbus_dev_error() and xenbus_dev_ok() functions
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:25:57 +0000 (17:25 +0000)]
Implement xenbus_dev_error() and xenbus_dev_ok() functions
for better error reporting using the store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoScrub initial xenstore page, free xendev structure.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:24:22 +0000 (17:24 +0000)]
Scrub initial xenstore page, free xendev structure.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix locking: probe can be called from several places, so ensure
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:22:38 +0000 (17:22 +0000)]
Fix locking: probe can be called from several places, so ensure
we lock for it.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bus watch code, and clean up a little.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:19:38 +0000 (17:19 +0000)]
Fix bus watch code, and clean up a little.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoNote about when device_find is fixed
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:18:55 +0000 (17:18 +0000)]
Note about when device_find is fixed
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoModify to assume transactions
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:18:11 +0000 (17:18 +0000)]
Modify to assume transactions
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDo not use device_find: crashes for some reason
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:16:55 +0000 (17:16 +0000)]
Do not use device_find: crashes for some reason
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix missing argument rename in xenbus_exists.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:15:53 +0000 (17:15 +0000)]
Fix missing argument rename in xenbus_exists.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGrab lock around registering watch.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:07:50 +0000 (17:07 +0000)]
Grab lock around registering watch.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd watch for dynamic add/remove of devices.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:07:05 +0000 (17:07 +0000)]
Add watch for dynamic add/remove of devices.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix return from xenbus_scanf: returns number scanned, not 0!
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:04:33 +0000 (17:04 +0000)]
Fix return from xenbus_scanf: returns number scanned, not 0!
Fix xenbus_write args in xenbus_printf
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMajor xenbus cleanup
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:59:40 +0000 (16:59 +0000)]
Major xenbus cleanup
1) Make xenbus_* functions first-class citizens, evict xs_ prefix.
2) Add xenbus_scanf and xenbus_printf instead of multiple functions
3) Remove unused code from xenbus.c
4) Use standard debugging macros.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoManual merge.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:17:04 +0000 (16:17 +0000)]
Manual merge.

20 years agoAttached patch removes the empty domain if
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:16:39 +0000 (16:16 +0000)]
Attached patch removes the empty domain if
xc.memory_increase_reservation fails.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 years agoUpdate python bindings - xs_watch doesn't support a priority anymore.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:57:18 +0000 (15:57 +0000)]
Update python bindings - xs_watch doesn't support a priority anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't enter sv subdirectory until its Makefile supports targets
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:37:40 +0000 (15:37 +0000)]
Don't enter sv subdirectory until its Makefile supports targets
like `clean' or actually does anything useful.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove ill-conceived concept of watches blocking reply on
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:26:32 +0000 (15:26 +0000)]
Remove ill-conceived concept of watches blocking reply on
connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way
of avoiding them: it is reasonable for someone to ignore watch
notifications while doing other actions, and that means that
we can do other writes.  These writes can block pending other
watchers; if one of these is the process blocked awaiting our
ack, we deadlock.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bug where transaction fires multiple events.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:24:28 +0000 (15:24 +0000)]
Fix bug where transaction fires multiple events.
Add general trace() call to help future debugging.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bug where watch messages doesn't go out. Also change xs_test
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:23:50 +0000 (15:23 +0000)]
Fix bug where watch messages doesn't go out.  Also change xs_test
to more closely represent xenbus behaviour so we can see the bug.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAllow test.sh to take arg: name of test to start with
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:21:32 +0000 (15:21 +0000)]
Allow test.sh to take arg: name of test to start with
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake testing more reliable: wait for event after async so we know
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:21:00 +0000 (15:21 +0000)]
Make testing more reliable: wait for event after async so we know
child has done command
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoChange watches: operations block until everyone has acked.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:20:09 +0000 (15:20 +0000)]
Change watches: operations block until everyone has acked.
Watch events are no longer sent to self
Watches no longer take a priority
async and asyncwait commands for xs_test, now we need to continue
despite blocking ops.
Print test name at end of verbose run on failure.
Use --trace-file arg to xenstored when testing
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoThis patch prevents you from getting a screen full of stack trace when
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:16:39 +0000 (15:16 +0000)]
This patch prevents you from getting a screen full of stack trace when
trying to run commands like xm list as a normal user, and instead provides a
helpful error message.

Signed-off-by: Sean Dague <sean@dague.net>
20 years agoManual merge.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:16:12 +0000 (15:16 +0000)]
Manual merge.

20 years agoChange from bool indicating blocked to an enum: when watches go
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:13:56 +0000 (15:13 +0000)]
Change from bool indicating blocked to an enum: when watches go
synchronous this makes it easier (because then we have two reasons
to block)
Instead of using return value, use explicit state member inside
struct connection.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoTest and fix acknowedge_watch from returning EINVAL.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:09:43 +0000 (15:09 +0000)]
Test and fix acknowedge_watch from returning EINVAL.
Also ensure that daemon re-xmits event if they ack wrong thing
(otherwise confused clients get stuck, as we will send no more
data while awaiting ack).
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix testsuite to ignore tool/ dir.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:08:22 +0000 (15:08 +0000)]
Fix testsuite to ignore tool/ dir.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoStart of code to persistent store connections when xenstored restarts
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 14:02:33 +0000 (14:02 +0000)]
Start of code to persistent store connections when xenstored restarts
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd XenSV back into the repository.
twilkie@paploo.uk.xensource.com [Tue, 26 Jul 2005 13:56:30 +0000 (13:56 +0000)]
Add XenSV back into the repository.
Now uses Python Server Pages, not twisted.

20 years ago# HG changeset patch
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 13:11:01 +0000 (13:11 +0000)]
# HG changeset patch
# User Rusty Russell <rusty@rustcorp.com.au>
# Node ID a92163adedcfcff0d05c965d09da747f3c8aa13e
# Parent  63ab20781afa311300f3a8e832744292014ea7f6

Remove ill-conceived concept of watches blocking reply on connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way of avoiding them: it is reasonable for someone to ignore watch notifications while doing other actions, and that means that we can do other writes.  These writes can block pending other watchers; if one of these is the process blocked awaiting our ack, we deadlock.

diff -r 63ab20781afa -r a92163adedcf tools/xenstore/xenstored_core.c

20 years agoFix restart/poweroff properly. From aq.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 10:09:06 +0000 (10:09 +0000)]
Fix restart/poweroff properly. From aq.

20 years ago- allows to optionally boot the system with a policy already being
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:19:14 +0000 (21:19 +0000)]
- allows to optionally boot the system with a policy already being
  active at startup; this works by adding a module line into the grub
  configuration file and placing the binary policy generated by the
  policy tool into the boot directory; This assumes that a maximum of
  one module line is used for the initrd in the grub configuration
  file - Question: do users pass more than one module to the kernel?
- enables the policy hypervisor call on x86/64
- some function prototypes moved to include files
- moves the version number in the java tool up to the current
  version (a better way of doing this will be submitted soon)

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
20 years agoImprove guest time keeping
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:03:40 +0000 (21:03 +0000)]
Improve guest time keeping

Even though we accounted for lost ticks, the accounting was not precise.
Specifically, we didn't account for the delay in calling the ac_timer
handler.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoReally enable gdbserver for real mode code.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:03:25 +0000 (21:03 +0000)]
Really enable gdbserver for real mode code.

Missed out one instance where we need to check if we're running on
1:1 page tables with guest paging disabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoUse hg root instead of bk root.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:03:05 +0000 (21:03 +0000)]
Use hg root instead of bk root.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoRestore command line parsing code from qemu-0.6.1
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:50 +0000 (21:02 +0000)]
Restore command line parsing code from qemu-0.6.1

This enables cdrom ejection (both file based and physical i.e. /dev/cdrom)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoAllow multiple disk images per guest.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:34 +0000 (21:02 +0000)]
Allow multiple disk images per guest.

Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoFix the path to qemu-dm
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:24 +0000 (21:02 +0000)]
Fix the path to qemu-dm

20 years agoImplement the I/O bitmap vm execution control.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:09 +0000 (21:02 +0000)]
Implement the I/O bitmap vm execution control.

With this patch, we should not bee seeing any vmexits for debug port
accesses.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoDon't leave behind zombie device model processes
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:01:57 +0000 (21:01 +0000)]
Don't leave behind zombie device model processes

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoXen full virtualization does not handle unaligned IO with page crossing.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:01:42 +0000 (21:01 +0000)]
Xen full virtualization does not handle unaligned IO with page crossing.
Disable 32-bit PIO as a workaround.

Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoTranslate some control characters in the qemu monitor.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:00:30 +0000 (21:00 +0000)]
Translate some control characters in the qemu monitor.

This removes odd control characters displayed in the qemu monitor with vnc

Signed-off-by: Edwin Zhain <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoRemove extra definition of DBG in pci/irq.c in XenLinux.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 20:41:31 +0000 (20:41 +0000)]
Remove extra definition of DBG in pci/irq.c in XenLinux.

20 years agoFix cross-compile builds by using NM macro instead of nm
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 20:33:41 +0000 (20:33 +0000)]
Fix cross-compile builds by using NM macro instead of nm
binary directly.

20 years agoXenLinux restart/poweroff calls 'reboot' or 'poweroff'
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 20:32:11 +0000 (20:32 +0000)]
XenLinux restart/poweroff calls 'reboot' or 'poweroff'
as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agosplit deallocation from net_tx_action
vh249@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 17:26:32 +0000 (17:26 +0000)]
split deallocation from net_tx_action

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoadd grant table capabilities to netback and netfront.
vh249@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 17:07:31 +0000 (17:07 +0000)]
add grant table capabilities to netback and netfront.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoregenerate smp-alt.patch for 2.6.12
vh249@arcadians.cl.cam.ac.uk [Mon, 25 Jul 2005 09:56:50 +0000 (09:56 +0000)]
regenerate smp-alt.patch for 2.6.12

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoLocal merge
sd386@font.cl.cam.ac.uk [Fri, 22 Jul 2005 17:58:52 +0000 (17:58 +0000)]
Local merge
Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}

20 years agoPort kallsyms to Xen, as 'symbols'.
kaf24@firebug.cl.cam.ac.uk [Fri, 22 Jul 2005 16:44:33 +0000 (16:44 +0000)]
Port kallsyms to Xen, as 'symbols'.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFixed extratime scheduling bug, which caused a prioritised dom0 to overtake the whole...
sd386@font.cl.cam.ac.uk [Fri, 22 Jul 2005 15:32:31 +0000 (15:32 +0000)]
Fixed extratime scheduling bug, which caused a prioritised dom0 to overtake the whole cpu.
Signed-off by: Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}

20 years agoIn 2.6.12-land, do_debug and do_int3 return void. Make sure we don't try
sos22@douglas.cl.cam.ac.uk [Fri, 22 Jul 2005 14:25:10 +0000 (14:25 +0000)]
In 2.6.12-land, do_debug and do_int3 return void.  Make sure we don't try
to use their return values anywhere.

Signed-off-by: Steven Smith, sos22@cam.ac.uk.
20 years agoHere is a patch to enable Xen to run on a Unisys ES7000 x86_64 system.
kaf24@firebug.cl.cam.ac.uk [Thu, 21 Jul 2005 15:50:11 +0000 (15:50 +0000)]
Here is a patch to enable Xen to run on a Unisys ES7000 x86_64 system.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
20 years agoFix problem of can not create two or more vmx guest.
kaf24@firebug.cl.cam.ac.uk [Thu, 21 Jul 2005 14:15:35 +0000 (14:15 +0000)]
Fix problem of can not create two or more vmx guest.

The original gdb server patch will cause the new vmx guest break the=20
old one. This patch make the arch_set_guest_info modify the correct
vmcs and also skip modifying during  creating.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>^
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoSave per cpu IDT information into the VMCS host area.
kaf24@firebug.cl.cam.ac.uk [Thu, 21 Jul 2005 13:59:49 +0000 (13:59 +0000)]
Save per cpu IDT information into the VMCS host area.

Without this, we may be saving the IDT info from the wrong cpu into the
vmcs.
This makes domU work in the presence of VMX domains on SMP/HT enabled
machines.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>=20
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoPropagate guest MSR writes to machine MSRs immediately
kaf24@firebug.cl.cam.ac.uk [Thu, 21 Jul 2005 13:59:08 +0000 (13:59 +0000)]
Propagate guest MSR writes to machine MSRs immediately

Right now, we have an exposure between the time the MSR is written
and used by an instruction such as syscall. If there is a context
switch and we do vmx_do_restore_msrs(), everything goes fine. But
if we don't, then we execute the syscall with the wrong MSR.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoFix bug.
smh22@firebug.cl.cam.ac.uk [Wed, 20 Jul 2005 19:45:05 +0000 (19:45 +0000)]
Fix bug.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoNo need to define io_remap_pfn_range in linux/mm.h.
kaf24@firebug.cl.cam.ac.uk [Wed, 20 Jul 2005 17:44:29 +0000 (17:44 +0000)]
No need to define io_remap_pfn_range in linux/mm.h.